<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
		<meta content=" " name="keywords" />
		<meta content=" " name="description" />
		<%@ include file="/jsp/front/common/header.jsp"%>
	</head>
	<body>
		<%@ include file="/jsp/front/common/nav.jsp"%>
		<div id="MainWrap">
 
			<div id="LeftColumn">
				<div id="" class="border2">
					<div class="border-top">
						<h3>
							赠品分类
						</h3>
					</div>
					<div class="border-body">
						<div class="TreeList">
							<c:forEach items="${marketGiftCats}" var="cat">
								<div class="cat2">
									<a href="dp_gift_list.html?giftCatId=${cat.giftCatId}">${cat.giftCatName}</a>
								</div>
							</c:forEach>
						</div>
					</div>
					<div class="border-foot"></div>
				</div>
			</div>
			<div id="Main">
				<div id="325">
					<div class="Navigation">
						您当前的位置：
						<span><a href="">首页</a> </span>
						<span>»</span>
						<span>${marketGift.name} </span>

					</div>
				</div>


				<div class="GoodsInfoWrap">
					<div class="info">
						<table width="100%">
							<tbody>
								<tr>
									<td valign="top" align="center" class="goodspic">
										<table width="100%">

											<tr>
												<td align="center" class="gift_details">
													<div class="goods-detail-pic">
														<a style="font-family: Arial; display: table-cell; vertical-align: middle; font-size: 263px; color: rgb(255, 255, 255);" target="_blank" href=""> <img width="300" height="300"
																src="${marketGift.smallPic }" style="margin-top: 0px;">
														</a>
													</div>
												</td>
											</tr>

										</table>
									</td>
									<td valign="top">
										<h1 class="goodsname">
											赠品名：${marketGift.name}
										</h1>
										<ul class="goodsprops clearfix">
											<li>
												<span>赠品分类：</span>
												<c:forEach items="${marketGiftCats}" var="cat">
													<c:if test="${cat.giftCatId==marketGift.giftCatId}">${cat.giftCatName}</c:if>
												</c:forEach>
											</li>
											<li>
												<span>商品重量：</span>${marketGift.weight} g
											</li>
											<li>
												<span>起始时间：</span>${marketGift.limitStartTimeString}
											</li>
											<li>
												<span>库存数量：</span>${marketGift.storage}
											</li>
											<li>
												<span>截止时间：</span>${marketGift.limitEndTimeString}
											</li>
											<li>
												<span>数量限制：</span>${marketGift.limitNum}
											</li>
											<li class="memberprice">
												<span>市场价格：</span><i><fmt:message key="common_currency" /> <fmt:formatNumber pattern="0.00" value="${marketGift.price}" /></i>
											</li>
											<li>
												<span>所需积分：</span>${marketGift.point}
											</li>
										</ul>
										<div>
											<a target="_blank" href="member_cart.html" onclick='addGiftToCart(${marketGift.giftId})' class="actbtn btn-gift">换取</a>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="goodspackagewrap clearfix">
						<div class="active">
							<span>详细介绍</span>
						</div>
					</div>
					<div class="section pdtdetail">
						<div class="body indent">
							${marketGift.giftDescribe }
						</div>
					</div>
				</div>




				<div class="clearfix" style="clear: both;">
				</div>
			</div>
		</div>
		<%@ include file="/jsp/front/common/footer.jsp"%>
		<script type="text/javascript" src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/cart.js'/>"></script>

		<script type="text/javascript">
			function addGiftToCart(id){
				updateItem(id,1,'gift');
				return true;
			}
			
		</script>
	</body>
</html>